﻿using MRSite.AutoMapper.Attributes;
using MRSite.Entity;
using ProtoBuf;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MRSite.EntityDto
{
    [AutoMapBoth(typeof(News))]
    [ProtoContract]
    public class NewsDto
    {
        [ProtoMember(1)]
        public int id { get; set; }


        [ProtoMember(2)]
        public String title { get; set; }


        [ProtoMember(3)]
        public int cid { get; set; }


        [ProtoMember(4)]
        public DateTime addtime { get; set; }


        [ProtoMember(5)]
        public DateTime edittime { get; set; }



        [ProtoMember(6)]
        public String imgurl { get; set; }



        [ProtoMember(7)]
        public String contents { get; set; }


        [ProtoMember(8)]
        public int sort_id { get; set; }


        [ProtoMember(9)]
        public int hits { get; set; }


        [ProtoMember(10)]
        public int loves { get; set; }


        [ProtoMember(11)]
        public int reads { get; set; }



        [ProtoMember(12)]
        public int point { get; set; }


        [ProtoMember(13)]
        public int comments { get; set; }


        [ProtoMember(14)]
        public int status { get; set; }


        [ProtoMember(15)]
        public String seo_title { get; set; }


        [ProtoMember(16)]
        public String seo_keywords { get; set; }


        [ProtoMember(17)]
        public String seo_description { get; set; }


        [ProtoMember(18)]
        public String zhaiyao { get; set; }


        [ProtoMember(19)]
        public int is_new { get; set; }


        [ProtoMember(20)]
        public int is_hot { get; set; }


        [ProtoMember(21)]
        public int is_msg { get; set; }


        [ProtoMember(22)]
        public int is_red { get; set; }


        [ProtoMember(23)]
        public String tags { get; set; }


        [ProtoMember(24)]
        public String video_src { get; set; }
    }
}
